Part Number Hot Search : 
X3402 AN1N980B BR20100 2A03G STA3350 SRC1201S VNP14N W5287
Product Description
Full Text Search
 

To Download DS4266D Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ds1347 low-current, spi-compatible real-time clock for pricing, delivery, and ordering information, please contact maxim direct at 1-888-629-4642, or visit maxim integrated? website at www.maximintegrated.com. 19-6007; rev 3; 1/13 general description the ds1347 spi-compatible real-time clock (rtc) con- tains a real-time clock/calendar and 31 x 8 bits of static random-access memory (sram). the real-time clock/calendar provides seconds, minutes, hours, day, date, month, year, and century information. a time/date programmable polled alarm is included in the device. the end-of-the-month date is automatically adjusted for months with fewer than 31 days, including corrections for leap year. the clock operates in either the 24hr or 12hr format with an am /pm indicator. the device oper- ates with a supply voltage of +2v to +5.5v, are avail- able in the ultra-small 8-pin tdfn package, and work over the -40? to +85? industrial temperature range. applications point-of-sale equipment intelligent instruments fax machines battery-powered products portable instruments features  rtc counts seconds, minutes, hours, day of week, date of month, month, year, and century  leap-year compensation  +2v to +5.5v wide operating voltage range  spi (mode 1 or 3) interface: 4mhz at 5v, 1mhz at 2v  31 x 8-bit sram for scratchpad data storage  uses standard 32.768khz watch crystal  low timekeeping current (400na at 2v)  single-byte or multiple-byte (burst mode) data transfer for read or write of clock registers or sram  ultra-small, 3mm x 3mm x 0.8mm, 8-pin tdfn package  programmable time/date polled alarm function  no external crystal bias resistors or capacitors required ordering information typical operating circuit part temp range osc c l (pf) pin-package ds1347t+ -40 c to +85 c 12.5 8 tdfn-ep* ds1347 +3.3v +3.3v gnd v cc 0.1 f c 1 x1 x2 5 2 3 sclk 32.768khz crystal cs dout din 4 8 7 6 + denotes a lead(pb)-free/rohs-compliant package. * ep = exposed pad.
low-current, spi-compatible real-time clock 2 maxim integrated ds1347 absolute maximum ratings dc electrical characteristics (v cc = +2.0v to +5.5v, t a = -40 c to +85 c. typical values are at v cc = +3.3v, t a = +25 c, unless otherwise noted.) (note 1) stresses beyond those listed under ?bsolute maximum ratings?may cause permanent damage to the device. these are stress rating s only, and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specificatio ns is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. v cc to gnd ..............................................................-0.3v to +6v all other pins to gnd ................................-0.3v to (v cc + 0.3v) current into any pin..........................................................?0ma rate of rise, v cc ............................................................100v/? continuous power dissipation (t a = +70 c) tdfn (derate 24.4mw/ c above +70 c)...................1.375mw junction temperature .....................................................+150 c storage temperature range -55 c to +125 c esd protection (all pins, human body model)................?000v lead temperature (soldering, 10s) .................................+300 c soldering temperature (reflow) .......................................+260 c parameter symbol conditions min typ max units operating voltage range v cc 2 5.5 v v cc = +2v 0.1 active supply current (note 2) i cc v cc = +5v 0.25 ma v cc = +2v 0.35 0.7 v cc = +3.6v 0.35 0.7 timekeeping supply current (note 3) i tk v cc = +5v 0.4 0.8 a spi digital inputs (sclk, din, cs ) v cc = +2v 1.4 input high voltage v ih v cc = +5v 2.2 v v cc = +2v 0.6 input low voltage v il v cc = +5v 0.8 v input leakage current i il v in = 0 to v cc -0.1 +0.1 a input capacitance c in (note 4) 10 pf spi digital output (dout) output leakage current i o cs = v ih -0.1 +0.1 a output capacitance c out (note 4) 15 pf v cc = +2v, i sink = 1.5ma 0.4 output low voltage v ol v cc = +5v, i sink = 4ma 0.4 v v cc = +2v, i source = -0.4ma 1.8 output high voltage v oh v cc = +5v, i source = -1ma 4.5 v
low-current, spi-compatible real-time clock maxim integrated 3 ds1347 ac electrical characteristics (v cc = +2.0v to +5.5v, t a = -40 c to +85 c. typical values are at v cc = +3.3v, t a = +25 c, unless otherwise noted.) (figure 5, notes 1, 5) parameter symbol conditions min typ max units spi serial timing input rise time t rin din, sclk, cs 5 ns input fall time t fin din, sclk, cs 5 ns output rise time t rout dout, c load = 100pf 10 ns output fall time t fout dout, c load = 100pf 10 ns v cc = +2v 1000 sclk period t cp v cc = +5v 238 ns sclk high time t ch 100 ns sclk low time t cl 100 ns v cc = +2v, c load = 100pf 300 sclk fall to dout valid t do v cc = +5v, c load = 100pf 100 ns din to sclk setup time t ds 100 ns din to sclk hold time t dh 20 ns v cc = +2v 200 sclk rise to cs rise hold time t csh v cc = +5v 50 ns cs high pulse width t csw 200 ns cs high to dout high impedance t csz 100 ns cs to sclk setup time t css 100 ns crystal characteristics note 1: all parameters are 100% tested at t a = +25?. limits over temperature are guaranteed by design and characterization and not production tested. note 2: i cc is specified with dout open, cs = din = gnd, sclk = 4mhz at v cc = +5v; sclk = 1mhz at v cc = +2.0v. note 3: timekeeping current is specified with cs = v cc , sclk = din = gnd, dosf = 0, egfil = 1. note 4: guaranteed by design and not 100% production tested. note 5: all values referred to v ih(min) and v il(max) levels. parameter symbol conditions min typ max units nominal frequency f o 32.768 khz series resistance esr 100 k  load capacitance c l 12.5 pf
supply current vs. supply voltage ds1347 toc01 supply voltage (v) supply current ( a) 5 4 3 20 40 60 80 100 120 0 26 t a = +25 c, i out = 0ma, cs = din = gnd f sclk = 4mhz f sclk = 1mhz supply current vs. supply voltage ds1347 toc02 supply voltage (v) supply current (na) 5 4 3 250 300 350 400 200 26 t a = +25 c, cs = v cc egfil = 1, dosf = 0 egfil = 0, dosf = 0 egfil = 0, dosf = 1 supply current vs. supply voltage ds1347 toc03 supply voltage (v) supply current (na) 5 4 3 300 400 500 200 26 cs = v cc , egfil = dosf = 0 +85 c -40 c +70 c +25 c 0 c 4 maxim integrated ds1347 low-current, spi-compatible real-time clock
low-current, spi-compatible real-time clock maxim integrated 5 ds1347 pin configuration v cc cs gnd 1 2 8 7 x1 x2 dout din sclk tdfn top view 3 4 6 5 ds1347 + ep pin description pin name function 1 sclk serial-clock input. sclk is used to synchronize data movement on the serial interface for either 3-wire or spi communications. 2 dout serial-data output. when spi communication is enabled, the dout pin is the serial-data output for the spi bus. 3 din serial-data input. when spi communication is enabled, the din pin is the serial-data input for the spi bus. 4 gnd ground 5 cs active-low chip select. the chip-enable signal must be asserted low during a read or a write for spi communications. 6 v cc power-supply input 7 x2 8 x1 connections for standard 32.768khz quartz crystal (see the crystal characteristics table). ep exposed pad. connect to gnd or leave unconnected.
low-current, spi-compatible real-time clock 6 maxim integrated ds1347 functional diagram seconds minutes hours date month day year control century alarm config status 31x 8 ram alarm thresholds clock burst ram burst alarm control logic address register control logic divider oscillator 32.768khz input shift registers alarm out 1hz x1 x2 v cc gnd sclk din dout cs ds1347
low-current, spi-compatible real-time clock maxim integrated 7 ds1347 detailed description the ds1347 is a real-time clock/calendar with an spi- compatible interface and 31 x 8 bits of sram. it pro- vides seconds, minutes, hours, day of the week, date of the month, month, and year information, held in seven 8-bit timekeeping registers (see the functional diagram ). an on-chip 32.768khz oscillator circuit requires only a single external crystal to operate. table 1 shows the device? register addresses and defini- tions. time and calendar data are stored in the regis- ters in binary-coded decimal (bcd) format. a polled alarm function is included for scheduled timing of user- defined times or intervals. address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 function range 01h 0 10 seconds seconds seconds 00C59 03h alm out 10 minutes minutes minutes 00C59 am /pm 05h 12/ 24 0 20 hr 10 hr hour hours 1C12+ am /pm 00C23 07h 0 0 10 date date date 01C31 09h 0 0 0 10 mo month month 01C12 0bh 0 0 0 0 0 day day 1C7 0dh 10 year year year 00C99 0fh wp 0 0 0 0 0 0 id control 00h or 81h 13h 1000 year 100 year century 00C99 15h 0 year day month date hour minute second alarm configuration 00hC7fh 17h eosc dosf egfil 0 0 osf 1 1 status 03hCe7h 19h 0 10 seconds seconds alarm seconds 00C59 1bh 0 10 minutes minutes alarm minutes 00C59 am /pm 1dh 12/ 24 0 20 hr 10 hr hours alarm hours 1C12 + am /pm 00C23 1fh 0 0 10 date date alarm date 1C31 21h 0 0 0 10 mo month alarm month 1C12 23h 0 0 0 0 0 day alarm day 1C7 25h 10 year year alarm year 00C99 3fh see the data input (burst write) section. clock burst 41h x x x x x x x x ram 0 00hCffh 43h x x x x x x x x ram 1 00hCffh 45h x x x x x x x x ram 2 00hCffh 47h x x x x x x x x ram 3 00hCffh 49h x x x x x x x x ram 4 00hCffh 4bh x x x x x x x x ram 5 00hCffh 4dh x x x x x x x x ram 6 00hCffh 4fh x x x x x x x x ram 7 00hCffh 51h x x x x x x x x ram 8 00hCffh 53h x x x x x x x x ram 9 00hCffh 55h x x x x x x x x ram 10 00hCffh table 1. register map
low-current, spi-compatible real-time clock 8 maxim integrated ds1347 address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 function range 57h x x x x x x x x ram 11 00hCffh 59h x x x x x x x x ram 12 00hCffh 5bh x x x x x x x x ram 13 00hCffh 5dh x x x x x x x x ram 14 00hCffh 5fh x x x x x x x x ram 15 00hCffh 61h x x x x x x x x ram 16 00hCffh 63h x x x x x x x x ram 17 00hCffh 65h x x x x x x x x ram 18 00hCffh 67h x x x x x x x x ram 19 00hCffh 69h x x x x x x x x ram 20 00hCffh 6bh x x x x x x x x ram 21 00hCffh 6dh x x x x x x x x ram 22 00hCffh 6fh x x x x x x x x ram 23 00hCffh 71h x x x x x x x x ram 24 00hCffh 73h x x x x x x x x ram 25 00hCffh 75h x x x x x x x x ram 26 00hCffh 77h x x x x x x x x ram 27 00hCffh 79h x x x x x x x x ram 28 00hCffh 7bh x x x x x x x x ram 29 00hCffh 7dh x x x x x x x x ram 30 00hCffh 7fh see the data input (burst write) section. ram burst table 1. register map (continued) command and control address/command byte each data transfer into or out of the device is initiated by an address/command byte. the address/command byte specifies which registers are to be accessed, and if the access is a read or a write. table 1 shows the address/command bytes and their associated regis- ters, and lists the hex codes for all read and write oper- ations. the address/command bytes are input msb (bit 7) first. bit 7 specifies a write (logic 0) or read (logic 1). bit 6 specifies register data (logic 0) or ram data (logic 1). bits 5? specify the designated register to be written or read. the lsb (bit 0) must be logic 1. if the lsb is a zero, writes to the device are disabled. clock burst mode sending the clock burst address/command (3fh) spec- ifies burst-mode operation. in this mode, multiple bytes are read or written after a single address/command. the first seven clock/calendar registers (seconds, minutes, hours, date, month, day, and year) and the control register are consecutively read or written, start- ing with the msb of the seconds register. when writing to the clock registers in burst mode, all seven clock/cal- endar registers and the control register must be written in order for the data to be transferred. see the example: setting the clock with a burst write section. ram burst mode sending the ram burst address/command (7fh) speci- fies burst-mode operation. in this mode, the 31 ram locations can be consecutively read or written, starting at 41h. when writing to ram in burst mode, it is not necessary to write all 31 bytes for the data to transfer; each complete byte written is transferred to ram. when reading from ram, data is output until all 31 bytes have been read, or until cs is driven high. 0 = reads as logic 0, 1 = reads as logic 1, x = don? care.
low-current, spi-compatible real-time clock maxim integrated 9 ds1347 setting the clock writing to the timekeeping registers the time and date are set by writing to the timekeeping registers (seconds, minutes, hours, date, month, day, year, and century). during a write operation, an input buffer accepts the new time data while the timekeeping registers continue to increment normally, based on the crystal counter. the buffer also keeps the timekeeping registers from changing as the result of an incomplete write operation, and collision-detection circuitry ensures that a time write does not occur coincident with a seconds register increment. the updated time is loaded into the timekeeping registers after the rising edge of cs , at the end of the spi write operation. an incomplete write operation aborts the update proce- dure, and the contents of the input buffer are discard- ed. the timekeeping registers reflect the new time beginning with the first seconds register increment after the rising edge of cs . although both single writes and burst writes are possi- ble, the best way to write to the timekeeping registers is with a burst write. with a burst write, the main time- keeping registers (seconds, minutes, hours, date, month, day, year) and the control register are written sequentially following the address/command byte. they must be written as a group of eight registers, with 8 bits each, for proper execution of the burst write function. all seven timekeeping registers are simultaneously loaded into the clock counters by the rising edge of cs , at the end of the spi write operation. if single write operations are used to enter data into the timekeeping registers, error checking is required. if not writing to the seconds register, begin by reading the seconds register and save it as initial-seconds. then write to the required timekeeping registers, and finally read the seconds register again (final-seconds). check to see that final-seconds is equal to initial-seconds. if not, repeat the write process. if writing to the seconds register, update the seconds register first, and then read it back and store its value (initial-seconds). update the remaining timekeeping registers and then read the seconds register again (final-seconds). check to see that final-seconds is equal to initial-seconds. if not, repeat the write process. am /pm and 12hr/24hr mode bit 7 of the hours register selects 12hr or 24hr mode. when high, 12hr mode is selected. in 12hr mode, bit 5 is the am /pm bit, logic-high for pm. in 24hr mode, bit 5 is the 20hr bit, logic-high for hours 20 through 23. write-protect bit bit 7 of the control register is the write-protect bit. when high, the write-protect bit prevents write opera- tions to all registers except itself. after initial settings are written to the timekeeping registers, set the write- protect bit to logic 1 to prevent erroneous data from entering the registers during power glitches or inter- rupted serial transfers. the lower 7 bits (bits 0?) are unusable, and always read zero. any data written to bits 0? are ignored. bit 7 must be set to zero before a single write to the clock, before a write to ram, or dur- ing a burst write to the clock. example: setting the clock with a burst write to set the clock to 10:11:31pm, thursday july 4th, 2002, with a burst write operation, write 3fh as the address/command byte, followed by 8 bytes, 31h, 11h, b0h, 04h, 07h, 05h, 02h, and 00h (figure 2). 3fh is the clock burst write address/command. the first data byte, 31h, sets the seconds register to 31. the second data byte, 11h, sets the minutes register to 11. the third data byte, b0h, sets the hours register to 12hr mode, and 10pm. the fourth data byte, 04h, sets the date register (day of the month) to the 4th. the fifth data byte, 07h, sets the month register to july. the sixth data byte, 05h, sets the day register (day of the week) to thursday. the seventh data byte, 02h, sets the year register to 02. the eighth data byte, 00h, clears the write-protect bit of the control register to allow writing to the device. the century register is not accessed with a burst write and therefore must be writ- ten to separately to set the century to 20. note the century register corresponds to the thousand and hun- dred digits of the current year and defaults to 19.
low-current, spi-compatible real-time clock 10 maxim integrated ds1347 reading the clock reading the timekeeping registers the main timekeeping registers (seconds, minutes, hours, date, month, day, year) can be read with either single reads or a burst read. in the device, a latch buffers each clock counter? data. clock counter data is latched by the spi read command (on the falling edge of sclk, after the address/command byte has been sent by the master to read a timekeeping regis- ter). collision-detection circuitry ensures that this does not happen coincident with a seconds counter incre- ment to ensure accurate time data is read. the clock counters continue to count and keep accurate time dur- ing the read operation. the simplest way to read the timekeeping registers is to use a burst read. in a burst read, the main timekeeping registers (seconds, minutes, hours, date, month, day, year), and the control register are read sequentially, in the order listed with the seconds register first. they are read out as a group of eight registers, with 8 bits each. all timekeeping registers (except century) are latched upon the receipt of the burst read command. the worst-case error between the ?ctual?time and the ?ead?time is 1s for a normal data transfer. the timekeeping registers can also be read using sin- gle reads. if single reads are used, it is necessary to do some error checking on the receiving end, because it is possible that the clock counters could change during the read operations, and report inaccurate time data. the potential for error is when the seconds register increments before all the registers are read. for exam- ple, suppose a carry of 13:59:59 to 14:00:00 occurs during single read operations. the net data read could be 14:59:59, which is erroneous. to prevent errors from occurring with single read operations, read the seconds register first (initial-seconds) and store this value for future comparison. after the remaining time- keeping registers have been read, reread the seconds register (final-seconds). check that the final-seconds value equals the initial-seconds value. if not, repeat the entire single read process. using single reads at a 100khz serial speed, it takes under 2.5ms to read all seven of the timekeeping registers, including two reads of the seconds register. example: reading the clock with a burst read to read the time with a burst read, send bfh as the address/command byte. then clock out 8 bytes, seconds, minutes, hours, date of the month, month, day of the week, year, and finally the control byte. all data is output msb first. decode the required informa- tion based on the register definitions listed in table 1. using the alarm a polled alarm function is available by reading the alm out bit. the alm out bit is d7 of the minutes time- keeping register. a logic 1 in alm out indicates the alarm function is triggered. there are eight registers associated with the alarm function?even programma- ble alarm threshold registers and one programmable alarm configuration register. the alarm configuration register determines which alarm threshold registers are compared to the timekeeping registers, and the alm out bit sets if the compared registers are equal. table 1 shows the function of each bit of the alarm configuration register. placing a logic 1 in any given bit of the alarm configuration register enables the respec- tive alarm function. for example, if the alarm configuration register is set to 0000 0011, alm out is set when both the minutes and seconds indicated in the alarm threshold registers match the respective timekeeping registers. once set, alm out stays high until it is cleared by reading or writing to the alarm configuration register, or by reading or writing to any of the alarm threshold registers. the alarm configuration register is located at address 15h, and is initialized to 00h on the first application of power. using the on-board ram the static ram is 31 x 8 bits addressed consecutively in the ram address/command space. table 1 details the specific hex address/commands for reads and writes to each of the 31 locations of ram. the contents of the ram are static and remain valid for v cc down to 2v. all ram data is lost if power is cycled. the write- protect bit (wp in the control register), when high, dis- allows any writes to ram. the ram? power-on state is undefined.
low-current, spi-compatible real-time clock maxim integrated 11 ds1347 control register (0fh) status register (17h) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 wp 0 0 0 0 0 0 id 0 0 0 0 0 0 0 0 bit 7 wp: write-protect ram. if the wp bit is logic one, writing to the 31 bytes of ram is inhibited. this bit is cleared (0) when power is first applied. bit 0 id: device identification bit. the content of this bit does not alter the component functionality. this bit is cleared (0) when power is first applied. alarm configuration register (15h) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0 year day month date hour minute second 0 0 0 0 0 0 0 0 alarm seconds register (19h) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0 10 seconds seconds 0 1 1 1 1 1 1 1 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 eosc dosf egfil 0 0 osf 0 0 0 0 0 0 0 1 1 1 bit 7 eosc : enable oscillator. w hen the eosc bit is logic 0, the oscillator is enabled. when this bit is logic 1, the oscillator is disabled. this bit is cleared (0) when power is first applied. bit 6 dosf: disable oscillator stop flag. when the dosf bit is set to 1, sensing of the oscillator conditions that would set the osf bit is disabled. osf remains at 0 regardless of what happens to the oscillator. this bit is cleared (0) on the initial application of power. bit 5 egfil: enable glitch filter. when the egfil bit is 1, the 5s glitch filter at the output of crystal oscillator is enabled. the glitch filter is disabled when this bit is 0. this bit is cleared (0) on the initial application of power. bit 2 osf: oscillator stop flag. if the osf bit is 1, the oscillator either has stopped or was stopped for some period and could be used to judge the validity of the clock and calendar data. this bit is edge triggered and is set to 1 when the internal circuitry senses the oscillator has transitioned from a normal run state to a stop condition. this bit remains at logic 1 until written to logic 0. attempting to write osf to 1 leaves the value unchanged. the following are examples of conditions that can cause the osf bit to be set: 1) the first time power is applied. 2) the voltage present on v cc is insufficient to support oscillation. 3) the eosc bit is set to logic 1. 4) external influences on the crystal (i.e., noise, leakage, etc.).
low-current, spi-compatible real-time clock 12 maxim integrated ds1347 spi-compatible serial interface interface the device with a microcontroller using a serial, 4-wire, spi interface. spi is a synchronous bus for address and data transfer, and is used with motorola or other microcontrollers that have an spi port. four con- nections are required for the interface: dout (serial- data out); din (serial-data in); sclk (serial clock); and cs (chip select). in an spi application, the device acts as a slave device and the microcontroller acts as the master. cs is asserted low by the microcontroller to initi- ate a transfer, and deasserted high to terminate a trans- fer. din transfers input data from the microcontroller to the device. dout transfers output data from the device to the microcontroller. a shift clock, sclk, is used to synchronize data movement between the microcon- troller and the device. sclk, which is generated by the alarm minutes register (1bh) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0 10 minutes minutes 0 1 1 1 1 1 1 1 alarm hours register (1dh) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 am /pm 12/ 24 0 20 hr 10 hr hours 1 0 1 1 1 1 1 1 alarm date register (1fh) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0 0 10 date date 0 0 1 1 1 1 1 1 alarm month register (21h) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0 0 0 10 mo month 0 0 0 1 1 1 1 1 alarm day register (23h) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0 0 0 0 0 day 0 0 0 0 0 1 1 1 alarm year register (25h) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 10 year year 1 1 1 1 1 1 1 1
low-current, spi-compatible real-time clock maxim integrated 13 ds1347 1 1 1 1 1 1 d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 address/command byte* data byte 1 data byte n high impedance; no activity on dout line during writes. d1 d0 r/w a6 cs sclk din dout *only one address/command byte is required per burst transaction. figure 2b. burst write sclk r/w a6 a5 a4 a3 a2 a1 1 d7 d6 d5 d4 d3 d2 d1 d0 din dout address/command byte data byte high impedance; no activity on dout line during writes. cs figure 1a. single write microcontroller, is active only during address and data transfer to any device on the spi bus. the inactive clock polarity is usually programmable on the microcontroller side of the spi interface. in the device, input data is latched on the positive edge, and output data is shifted out on the negative edge. there is one clock cycle for each bit transferred. address and data bits are trans- ferred in groups of eight. the spi protocol allows for one of four combinations of serial clock phase and polarity from the microcontroller, through a 2-bit selection in its spi control register. the clock polarity is specified by the cpol control bit, which selects active-high or active-low clock, and has no significant effect on the transfer format. the clock phase control bit, cpha, selects one of two different transfer formats. the clock phase and polarity must be identical for the master and the slave. for the device, set the control bits to cpha = 1 and cpol = 1. this configures the system for data out to be launched on the negative edge of sclk and data in to be sampled on the positive edge. with cpha equal to 1, cs can remain low between successive data byte transfers, allowing burst-mode data transfers to occur. address and data bytes are shifted msb first into din of the device, and out of dout. data is shifted out at the negative edge of sclk, and shifted in or sampled at the positive edge of sclk. any transfer requires an address/command byte followed by one or more bytes of data. data is transferred out of dout for a read operation, and into din for a write operation. dout transmits data only after an address/command byte specifies a read operation; otherwise, it is high impedance. data transfer write timing is shown in figure 1. data transfer read timing is shown in figure 2. detailed read and write timing is shown in figure 3.
low-current, spi-compatible real-time clock 14 maxim integrated ds1347 sclk r/w a6 a5 a4 a3 a2 a1 1 din dout address/command byte high impedance data byte d7 d6 d5 d4 d3 d2 d1 d0 cs figure 2a. single read 111111 address/command byte* d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 data byte 1 data byte n high impedance r/w a6 d1 d0 cs sclk din dout *only one address/command byte is required per burst transaction. figure 2b. burst read cs sclk t ds din dout t css t cl t dh t ch t cp t csh t csw t csz r/w a6 a5 1 t do d7 d0 figure 3. spi bus timing diagram
low-current, spi-compatible real-time clock maxim integrated 15 ds1347 chip select cs serves two functions. first, cs turns on the control logic that allows access to the shift register for address/command and data transfer. second, cs pro- vides a method of terminating either single-byte or mul- tiple-byte data transfers. all data transfers are initiated by driving cs low. if cs is high, then dout is high impedance. serial clock a clock cycle on sclk is a rising edge followed by a falling edge. for data input, data must be valid at din before the rising edge of the clock. for data outputs, bits are valid on dout after the falling edge of the clock. data input (single-byte write) following the eight sclk cycles that input a single-byte write address/command, data bits are input on the ris- ing edges of the next eight sclk cycles. additional sclk cycles are ignored. input data msb first. data input (burst write) following the eight sclk cycles that input a burst-write address/command, data bits are input on the rising edges of the following sclk cycles. the number of clock cycles depends on whether the timekeeping reg- isters or ram are being written. a clock burst write requires 1 address/command byte, 7 timekeeping data bytes, and 1 control register byte. a burst write to ram can be terminated after any complete data byte by dri- ving cs high. input data msb first (figure 1). data output (single-byte read and burst read) a read from the device is initiated by an address/com- mand write from the microcontroller (master) to the device (slave). the address/command write portion of the data transfer is clocked into the device on rising clock edges. following the eighth falling clock edge of sclk, after t do (figure 2) data begins to be output on dout of the device. data bytes are output msb first. additional sclk cycles transmit additional data bits, as long as cs remains low. this permits continuous burst- mode read capability. applications information oscillator start time the device? oscillator typically takes less than 2s to begin oscillating. to ensure the oscillator is operating correctly, the software should validate proper time- keeping. this is accomplished by reading the seconds register. any reading of 1s or more from the por value of zero seconds is a validation of proper startup. power-on reset the device contains an integral por circuit that ensures all registers are reset to a known state on power-up. upon a por, the time and date are set to 00:00:00 01/01/1970 (hh:mm:ss dd/mm/yyyy) and the day register is set to 01. once v cc rises, the por cir- cuit releases the registers for normal operation. power-supply considerations for most applications, a 0.1? capacitor from v cc to gnd provides adequate bypassing for the device. a series resistor can be added to the supply line for oper- ation in extremely harsh or noisy environments. pcb considerations the device uses a very low-current oscillator to mini- mize supply current. this causes the oscillator pins, x1 and x2, to be relatively high impedance. exercise care to prevent unwanted noise pickup. connect the 32.768khz crystal directly across x1 and x2 of the device. to eliminate unwanted noise pickup, design the pcb using these guidelines (figure 4): 1) place the crystal as close to x1 and x2 as possible and keep the trace lengths short. 2) place a guard ring around the crystal, x1 and x2 traces (where applicable), and connect the guard ring to gnd; keep all signal traces away from beneath the crystal, x1, and x2. 3) finally, an additional local ground plane can be added under the crystal on an adjacent pcb layer. the plane should be isolated from the regular pcb ground plane, and connected to ground at the ic ground pin. 4) restrict the plane to be no larger than the perimeter of the guard ring. do not allow this ground plane to con- tribute significant capacitance between x1 and x2.
low-current, spi-compatible real-time clock 16 maxim integrated ds1347 ground plane via connection ground plane via connection guard ring sm watch crystal layer 1 trace layer 2 local ground plane connect only to pin 4 ground plane via v cc plane via connection ground plane via connection * * ** ** * * * * * * ** * * * * ** ** 0.1 f sm cap ds1347 figure 4. crystal pcb layout package type package code outline no. land pattern no. 8 tdfn-ep t833+2 21-0137 90-0059 package information for the latest package outline information and land patterns (foot- prints), go to www.maximintegrated.com/packages . note that a ?? ?? or ??in the package code indicates rohs status only. package drawings may show a different suffix character, but the drawing pertains to the package regardless of rohs status. chip information process: cmos
maxim integrated cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a maxim integr ated product. no circuit patent licenses are implied. maxim integrated reserves the right to change the circuitry and specifications without notice at any time . the parametric values (min and max limits) shown in the electrical characteristics table are guaranteed. other parametric values quoted in this data sheet are provided for guidance. maxim integrated 160 rio robles, san jose, ca 95134 usa 1-408-601-1000 17 2013 maxim integrated products, inc. maxim integrated and the maxim integrated logo are trademarks of maxim integrated products , inc. ds1347 low-current, spi-compatible real-time clock revision history revision number revision date description pages changed 0 8/11 initial release 1 1/12 removed all references to the ds1346 all 2 2/12 removed the external oscillator text from the x1 pin description in the pin description table 5 3 1/13 moved crystal characteristics table below notes; added por content for clock/calendar registers. 3, 15


▲Up To Search▲   

 
Price & Availability of DS4266D

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X